package com.ulife.permission.dao;

import java.sql.SQLException;
import java.util.List;

import com.ulife.permission.dao.dataobject.FunctionDO;

public interface FunctionDao {

	FunctionDO getFunctionById(long id) throws SQLException;
	
	FunctionDO getFunctionByFunctionId(String functionId) throws SQLException;

	int addFunction(FunctionDO function) throws SQLException;

	List<FunctionDO> getAllFunction() throws SQLException;

	int updateFunction(FunctionDO functionDO) throws SQLException;
	
}
